/*    */ package com.wzh.action.control.html;
/*    */ 
/*    */ import com.opensymphony.xwork2.ActionSupport;
/*    */ import com.wzh.utils.BookCollectUtil;
/*    */ import com.wzh.utils.CommonUtil;
/*    */ import javax.servlet.ServletContext;
/*    */ import org.apache.struts2.ServletActionContext;
/*    */ import org.springframework.stereotype.Controller;
/*    */ 
/*    */ @Controller
/*    */ public class CreateHtmlAction extends ActionSupport
/*    */ {
/*    */   private static final long serialVersionUID = 1L;
/*    */ 
/*    */   public String createHtml()
/*    */   {
/* 21 */     String index = BookCollectUtil.getWebContentByUrl("http://127.0.0.1:8080/index", "utf-8");
/* 22 */     String path = ServletActionContext.getServletContext().getRealPath("/") + "index.html";
/*    */ 
/* 24 */     CommonUtil.saveStringToFile(path, index, "utf-8");
/* 25 */     return "";
/*    */   }
/*    */ }

/* Location:           C:\work\apache-tomcat-7.0.55\webapps\ROOT\WEB-INF\classes\
 * Qualified Name:     com.wzh.action.control.html.CreateHtmlAction
 * JD-Core Version:    0.6.1
 */